// 导入模块
const fs=require('fs')
const {promisify}=require('util')

//创建async函数
async function fun() {
    //读取文件
    let myReadFiles=promisify(fs.readFile)
    try {
        let oneFile=await myReadFiles('./files/first.txt')
        let twoFile=await myReadFiles('./files/second.txt')
        let threeFile=await myReadFiles('./files/third.txt')
        console.log(oneFile+twoFile+threeFile)
    }catch (e){
        console.log(e)
    }
}
fun()